package com.cxria.problem.enums

enum StatusCodeEnum {

	NORMAL('0000'),
	USER_NOT_LOGIN('1001'),
	USER_ROLE_ERROR('1002'),
	USER_AUTHORITY_ERROR('1003'),
	USER_INCORRECT_CREDENTIALS_ERROR('1004'),
	USER_IS_NOT_DELETE('1005'),
	ROLE_IS_NOT_DELETE('1006'),
	DATA_ALREADY_EXISTS_ERROR('2001'),
	DATA_SAVE_ERROR('2002'),
	DATA_VIOLATION_ERROR('2003'),
	UNKNOWN_ERROR('9999')

	String str

	StatusCodeEnum(String str) {
		this.str = str
	}

	@Override
	String toString() {
		return String.valueOf(this.str)
	}

}
